<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html> 
    <head>
        <meta charset="utf-8">
        <title><?= $title ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
        <link rel="stylesheet" type="text/css" href="/botutp/Public/home/css/html5.css" />
        <link rel="stylesheet" href="/botutp/Public/home/css/index.css" />
        <link rel="stylesheet" type="text/css" href="/botutp/Public/home/css/main.css" />
        <script type="text/javascript" src="/botutp/Public/home/js/jquery-1.10.2.min.js"></script>
        <script type="text/javascript" src="/botutp/Public/home/js/jquery.js"></script>
        <script type="text/javascript" src="/botutp/Public/home/js/jquery.easing.min.js"></script>
        <script type="text/javascript" src="/botutp/Public/home/js/main.js"></script>
        <script type="text/javascript" src="/botutp/Public/home/js/lazyload.js" ></script>
    </head>

    <body>
        <div class="zhuye_head c">
            <div onclick="location.href='<?php echo U('login/index');?>'" style="cursor: pointer" class="zhuye_hd c">
                <h4></h4> 
            </div>
        </div>
        <div class="login_bg c">
            <div class="login-denglu c">
                <div class="login-form c">
                    <div class="login-top">用户登录</div>
                    <form id="form1" name="form1" method="post" action="<?php echo U('login/index');?>" class="c">
                        <div class="login-name c">
                            <label>用户名</label>
                            <input type="text" value="" size="20" id="uname" name="username" placeholder="">
                        </div>
                        <div class="login-pwd c">
                            <label>密码</label>
                            <input type="password" value="" size="20" id="upass" name="password" maxlength="30" />
                        </div>
                        <div class="login-dl c">
                            <input type="submit" name="" value="立即登录" onclick="return check();"/>
                        </div>
                    </form>
                </div>
            </div>
        </div> 
  
		

    </body>
    <script type="text/javascript">
        function check() {

            if (document.getElementById("uname").value == "") {
                alert('登录名不能为空!');
                document.getElementById("uname").focus();
                return false;
            }

            //var mbname = document.getElementById("uname").value;
           // var preg2 = /^[A-Za-z0-9]{4,16}$/;
            //var preg3 = /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/;
           // if (!preg2.test(mbname) && !preg3.test(mbname)) {
            //    alert("用户名只能由数字和字母组成,4~16位！");
             //   document.getElementById("uname").focus();
              //  return false;
           // }

            if (document.getElementById("upass").value == "") {
                alert('登录密码不能为空!');
                document.getElementById("upass").focus();
                return false;
            }

            //var psd = document.getElementById("upass").value;
            //var preg3 = /^[a-zA-Z0-9_]{6,16}$/;
            //if (!preg3.test(psd)) {
               // alert("密码只能由数字和字母组成并且少于16位！");
               // document.getElementById("upass").focus();
                //return false;
            //}
        }

        $("img").error(function(){ 
            this.src='/botutp/Public/home/images/nopic.gif';
        })
    </script>
</html>